package org.javagril.yuetong.mapper;


import org.apache.ibatis.annotations.Param;
import org.javagril.yuetong.bean.Driver;

import java.util.List;

public interface DriverMapper {
    int deleteByPrimaryKey(Integer driverid);

    int insert(Driver record);

    int insertSelective(Driver record);

    Driver selectByPrimaryKey(Integer driverid);

    int updateByPrimaryKeySelective(Driver record);

    int updateByPrimaryKey(Driver record);

    /*查询所有驾驶员信息*/
    List<Driver> getAllDrivers(@Param("page") Integer page, @Param("size") Integer size);

    /*查询所有驾驶员信息总数*/
    Long getTotal();

}